<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/view/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>
</head>
<body>
<#include "/common/image_upload.html"/>
<div class="body-box">
<div class="rhead" style="margin:10px 100px;">
	<div class="rpos">分销商注册</div>
	<div class="clear"></div>
</div>
<@p.form id="jvForm" action="register" labelWidth="12" style="margin:10px 100px;">
<@p.text width="50" colspan="2" label="登陆用户名" name="user.username" required="true" maxlength="100"/><@p.tr/>

<@p.password width="50" colspan="2" label="密码" id="password" name="user.password" maxlength="100" required="true" class="required"/><@p.tr/>
<@p.password width="50" colspan="2" label="确认密码" required="true" equalTo="#password"/><@p.tr/>


<@p.text width="50" colspan="2" label="公司名称" name="title" size="70" required="true" class="required" /><@p.tr/>
<@p.text width="50" colspan="2" label="联系人" name="master" size="70" required="true" class="required"/><@p.tr/>

<@p.text width="50" colspan="1" label="邮箱" name="user.email" maxlength="50" required="true" class="required"/>
<@p.text width="50" colspan="1" label="QQ" name="qq" maxlength="50"/><@p.tr/>

<@p.text width="50" colspan="1" label="电话" name="phone" maxlength="50"/>
<@p.text width="50" colspan="1" label="手机" name="mobile" maxlength="50"/><@p.tr/>

<@p.text width="50" colspan="2" label="营业执照编号" name="licenseNo" size="70" maxlength="50" required="true" class="required"/><@p.tr/>

<@p.td label="营业执照" colspan="1" width="50" noHeight="true">
<@p.text id="uploadImgPath1" name="imgLicense" readonly="readonly" size="24"/><input type="button" value="清空" onclick="clearImg(1);"/><br/>
<span id="ufc1"><input type="file" id="uploadFile1" size="20" accept="image/*"/></span> <input type="button" value="上传" onclick="upload(1);"/><br/>
</@p.td><@p.td colspan="1" width="50">
<img id="preImg1" alt="预览区" noResize="true" style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/>
</@p.td><@p.tr/>

<@p.td label="企业法人身份证照" colspan="1" width="50" noHeight="true">
<@p.text id="uploadImgPath2" name="imgPhoto" readonly="readonly" size="24"/><input type="button" value="清空" onclick="clearImg(2);"/><br/>
<span id="ufc2"><input type="file" id="uploadFile2" size="20" accept="image/*"/></span> <input type="button" value="上传" onclick="upload(2);"/><br/>
</@p.td><@p.td colspan="1" width="50">
<img id="preImg2" alt="预览区" noResize="true" style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/>
</@p.td><@p.tr/>

<@p.text width="50" colspan="2" label="商家地址" name="address" size="70" maxlength="50"/><@p.tr/>

<@p.text width="50" colspan="2" label="同步地址" name="apiUrl" size="70" maxlength="50"/><@p.tr/>

<@p.td colspan="2"><@p.submit code="global.submit"/></@p.td>
</@p.form>
</div>
</body>
</html>
